"""
Example of a simple RPC client
"""
from playdoh03 import *

class TestHandler(object):
    def test(self, arg):
        return "Hello %s !" % arg

if __name__ == '__main__':
    client = RpcClient('localhost')
    client.connect()
    client.set_handler(TestHandler, pickable=True)
    print client.test("world")
    client.disconnect()
    client.close_server()
    